#ifndef FRAMEMANAGER_H
#define FRAMEMANAGER_H

#include "frame.h"

class FrameManager
{
public:
  typedef QList<Frame*> FrameList;

  FrameManager();
  virtual ~FrameManager();

  void addFrame();
  void clearFrames();

  Frame* currentFrame();

  unsigned int currentFrameNumber() const;
  void setCurrentFrameNumber(const unsigned int number);
  void rewindFrame(unsigned int numFrames=1);
  void advanceFrame(unsigned int numFrames=1);
  void toLastFrame();

protected:
  FrameList mFrames;
  unsigned int mCurrentFrameNumber;
};

#endif
